﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="iptouse.aspx.cs" Inherits="Com.Rivyer.Web.ip.iptouse" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>分配IP</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/rivcontent.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <%if (DesignMode)
      { %>
    <script type="text/javascript" src="../js/ASPxScriptIntelliSense.js"></script>
    <%} %>
    <script type="text/javascript">
        
    </script>
    <div>
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td height="30">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td height="24" bgcolor="#353c44">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="6%" height="19" valign="bottom">
                                                        <div align="center">
                                                            <img src="../images/tb.gif" width="14" height="14" /></div>
                                                    </td>
                                                    <td width="94%" valign="bottom">
                                                        <span class="STYLE1">分配IP</span>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center" style="font-size: 12px; width=100%">
                    <div id="rivcontent">
                        <div class="title">
                            分配IP</div>
                        <dx:ASPxGridView ID="iptousegrid" runat="server" Font-Size="12px" AutoGenerateColumns="False"
                            KeyFieldName="id" Width="795px" ClientInstanceName="ipgridclient" OnRowUpdating="iptousegrid_RowUpdating">
                            <Columns>
                                <dx:GridViewCommandColumn VisibleIndex="0">
                                    <EditButton Visible="True" Text="修改">
                                    </EditButton>
                                </dx:GridViewCommandColumn>
                                <dx:GridViewDataTextColumn FieldName="id" ReadOnly="True" Visible="False" VisibleIndex="1">
                                    <EditFormSettings Visible="False" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="ip" VisibleIndex="2" Width="95px" ReadOnly="True">
                                    <EditFormSettings Visible="True" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="责任人" FieldName="usedperson" VisibleIndex="3"
                                    Width="90px">
                                    <EditFormSettings Visible="False" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="部门" FieldName="department" VisibleIndex="4" Width="110px">
                                    <EditFormSettings Visible="False" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="单位" FieldName="organization" VisibleIndex="5"
                                    Width="90px">
                                    <EditFormSettings Visible="False" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataCheckColumn Caption="外网" FieldName="usedinternet" VisibleIndex="6"
                                    Width="35px">
                                    <Settings AllowHeaderFilter="False" ShowFilterRowMenu="False" />
                                </dx:GridViewDataCheckColumn>
                                <dx:GridViewDataMemoColumn Caption="备注" FieldName="description" VisibleIndex="7"
                                    Width="120px">
                                </dx:GridViewDataMemoColumn>
                                <dx:GridViewDataTextColumn Caption="MAC" FieldName="macaddress" VisibleIndex="8"
                                    Width="100px">
                                    <PropertiesTextEdit NullText="MAC地址格式:**-**-**-**-**-**">
                                    </PropertiesTextEdit>
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataDateColumn Caption="生产日期" FieldName="productdate" VisibleIndex="9"
                                    Width="65px">
                                    <PropertiesDateEdit DisplayFormatString="yyyy/MM">
                                    </PropertiesDateEdit>
                                </dx:GridViewDataDateColumn>
                                <dx:GridViewDataDateColumn Caption="修改日期" FieldName="modifydate" VisibleIndex="10"
                                    Width="80px">
                                    <PropertiesDateEdit DisplayFormatString="MM/dd hh:mm">
                                    </PropertiesDateEdit>
                                    <EditFormSettings Visible="False" />
                                </dx:GridViewDataDateColumn>
                            </Columns>
                            <SettingsPager PageSize="15" AlwaysShowPager="True">
                            </SettingsPager>
                            <Styles>
                                <Header HorizontalAlign="Center">
                                </Header>
                            </Styles>
                        </dx:ASPxGridView>
                        <div>
                            <table border="0" cellpadding="10px" cellspacing="0" style="font-size: 12px">
                                <tr>
                                    <th colspan="3">
                                        批量编辑
                                    </th>
                                </tr>
                                <tr>
                                    <td colspan="3" align="left">
                                        <span class="tips">Step 1.</span>填入必要的分配IP信息(在开始编辑之前,请再一次检查表中IP是您要分配出去的!)
                                    </td>
                                </tr>
                                <tr>
                                    <td valign="top">
                                        责任人:<dx:ASPxMemo ID="usedperson" runat="server" Height="105px" Width="170px" NullText="请为每一个需要分配的IP提供具体的责任人,中间用英文逗号,隔开,例如需要分配3个IP,责任人填法:张三,李四,王五">
                                        </dx:ASPxMemo>
                                    </td>
                                    <td valign="top">
                                        部门:<dx:ASPxTextBox ID="department" runat="server" Width="170px" NullText="部门单位可以两者选其一填写!">
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td valign="top">
                                        单位:<dx:ASPxTextBox ID="organization" runat="server" Width="170px" NullText="部门单位可以两者选其一填写!">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3" align="center">
                                        <dx:ASPxButton ID="addiptouse" runat="server" Text="分配IP" OnClick="addiptouse_Click">
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3" align="left">
                                        <span class="tips">Step 2.</span>对表格中的需要另外更新的属性进行更新或者完成编辑<span style="font-size: 12px;
                                            color: Red;"><a href="./ipoverview.aspx">返回</a></span>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
